<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>历史订单 - 游乐园信息管理系统</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/components.css">
</head>

<body>
    <header class="header">
        <div class="header-container">
            <button class="mobile-menu-btn">☰</button>
            <div class="location">
                <span class="location-icon">📍</span>
                <span class="location-text">Beijing, China</span>
            </div>
            <nav class="main-nav">
                <a href="rest-area.html" class="nav-item">休息区预约</a>
                <a href="project-recommend.html" class="nav-item">项目实时推荐</a>
                <a href="shuttle-call.html" class="nav-item">摆渡车呼叫</a>
                <a href="equipment-book.html" class="nav-item">道具预约</a>
                <a href="order.html" class="nav-item active" aria-current="page" style="background: var(--primary-dark); border-bottom-color: #ffffff; color: #ffffff; box-shadow: inset 0 -2px 0 rgba(255,255,255,0.4);">订餐服务</a>
                <a href="help.html" class="nav-item">帮助</a>
                <a href="language.html" class="nav-item">语言</a>
            </nav>
            <div class="user-actions">
                <a href="login.html" class="login-btn">登录使用更多功能</a>
                <span class="user-icon disabled" onclick="alert('个人中心功能暂不可用')">👤</span>
            </div>
        </div>
    </header>

    <aside class="sidebar">
        <div class="sidebar-header">
            <h3>项目详情</h3>
            <button class="collapse-btn" onclick="toggleSidebar()">◀</button>
        </div>
        <ul class="project-list">
            <li><a href="roller-coaster.html">
                    <span class="project-icon">💦</span>
                    <span class="project-text">激流勇进</span>
                </a></li>
            <li><a href="vr-cinema.html">
                    <span class="project-icon">🥽</span>
                    <span class="project-text">VR影院</span>
                </a></li>
            <li><a href="personal-center.html">
                    <span class="project-icon">👤</span>
                    <span class="project-text">个人中心</span>
                </a></li>
        </ul>

        <div class="latest-notice">
            <h4>最新通知</h4>
            <div class="notice-content">
                <p>• VR影院维护完成，现已开放</p>
                <p>• 今日游客量较大，建议错峰游玩</p>
                <p>• 水上项目需预约救生衣</p>
                <p>• 夜间灯光秀今晚8点开始</p>
            </div>
        </div>
    </aside>

    <main class="main-content">
        <!-- 历史订单 -->
        <section class="section" id="orderHistorySection">
            <h4>📋 历史订单</h4>
            <div class="orders-list" id="allOrdersList">
                <div class="order-item" data-skeleton>
                    <div class="order-info">
                        <h5>加载中…</h5>
                        <p>正在获取历史订单</p>
                    </div>
                    <span class="status-badge">···</span>
                </div>
            </div>
        </section>

    </main>

    <!-- 返回按钮 -->
    <button class="back-to-order-btn" onclick="window.location.href='order.html'">
        返回订餐
    </button>

    <script src="js/api-service.js"></script>
    <script src="js/main.js"></script>
    <script src="js/visitor-statistics.js"></script>
    <script src="js/order-history.js"></script>
</body>

</html>
